import time

t = time.localtime()
print('t:', t)
print('gmtime:', time.gmtime())
print('time:', time.time())
print('mktime(t):',time.mktime(t))
time.sleep(1)
print('asctime:', time.asctime())
print('ctime:', time.ctime())
print('strftime:', time.strftime('%Y-%m-%d'))
print('strptime:', time.strptime('2010-01-07', '%Y-%m-%d'))
print('strftime:', time.strftime('%H:%M:%S'))

